package com.phone.rest.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * jwt相关配置
 *
 * @author zengzr
 * @date 2017-08-23 9:23
 */
@Configuration
@ConfigurationProperties(prefix = WxProperties.WX_PREFIX)
public class WxProperties {

    public static final String WX_PREFIX = "wx";

    private String appid;

    private String secret;

    private final String wxInit="api/wxInit";

    private final String token_Url="https://api.weixin.qq.com/sns/oauth2/access_token?";

    private final String userinfo_Url="https://api.weixin.qq.com/sns/userinfo?";

    public static String getWxPrefix() {
        return WX_PREFIX;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public String getToken_Url() {
        return token_Url;
    }

    public String getUserinfo_Url() {
        return userinfo_Url;
    }

    public String getWxInit() {
        return wxInit;
    }
}
